package com.m3958.logcollector.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;

import com.m3958.logcollector.domain.ThirdPartLogin;
import com.m3958.logcollector.domain.ThirdPartLogin.Provider;


@RepositoryRestResource(collectionResourceRel = "thirdpl", path = "thirdpl")
public interface ThirdPartLoginRepository  extends JpaRepository<ThirdPartLogin, Long>, LoginAttemptRepositoryCustom, JpaSpecificationExecutor<ThirdPartLogin> {

    ThirdPartLogin findByProviderAndOpenId(Provider provider, String openId);

}
